package com.pengpeng.sheepfoldmall.ware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.pengpeng.common.utils.PageUtils;
import com.pengpeng.common.utils.R;
import com.pengpeng.sheepfoldmall.ware.entity.PurchaseEntity;
import com.pengpeng.sheepfoldmall.ware.vo.MergeVo;
import com.pengpeng.sheepfoldmall.ware.vo.PurchaseDoneVo;

import java.util.List;
import java.util.Map;

/**
 * 采购信息
 *
 * @author pengpeng
 * @email pengpeng@gmail.com
 * @date 2023-08-31 10:51:18
 */
public interface PurchaseService extends IService<PurchaseEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 查询未被领取的采购单列表(查询新建和已分配的采购单)
     * @param params
     * @return
     */
    PageUtils queryUnreceiveList(Map<String, Object> params);

    /**
     * 合并采购需求
     */
     R mergePurchase(MergeVo mergeVo);

    /**
     * 业务员领取采购单
     * @param ids
     */
    void receivedPurchase(List<Long> ids);

    /**
     * 业务员完成采购单
     */
    R finishPurchase(PurchaseDoneVo purchaseDoneVo);
}

